/**
  ******************************************************************************
  * @file    stmexit.c
  * @author  TONLY
  * @version V1.0
  * @date    2022-01-01
  * @brief   外部中断
  ******************************************************************************
  * @attention
  * 
  *	本程序只供学习使用，未经作者许可，不得用于其它任何用途
  *	版权所有，盗版必究
  *
  * <h2><center>&copy; COPYRIGHT 2022 华清-TONLY </center></h2>
  ******************************************************************************
  */  

/* Includes ------------------------------------------------------------------*/
#include "stmexti.h"


/* Private define ------------------------------------------------------------*/
/* Exported variables --------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* Public functions ----------------------------------------------------------*/

/**
  * @brief  中断配置
  * @param  Line 			： 中断通道	
  * @param  Mode 			： 抢占优先级	
  * @param  Trigger 		： 从优先级		
  * @retval None
  */
void STMEXTI_Config(uint32_t Line,EXTIMode_TypeDef Mode,EXTITrigger_TypeDef Trigger)
{
	EXTI_InitTypeDef  EXTI_InitStruct;
	
	EXTI_InitStruct.EXTI_Line		= Line;
	EXTI_InitStruct.EXTI_LineCmd	= ENABLE;
	EXTI_InitStruct.EXTI_Mode		= Mode;
	EXTI_InitStruct.EXTI_Trigger	= Trigger;
	EXTI_Init(&EXTI_InitStruct);
}


/******************* (C) COPYRIGHT 2022 华清-TONLY *************END OF FILE****/
